﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Wams.Admin.UI.Models
{
    public class JSMessage
    {
        public string Error = null;
    }
    public class JSDashboard
    {
        public string Error = null;
        public List<JSDeployment> Deployments;
        public List<JSSite> Sites;
    }
    public class JSDeployment
    {
        public string Id;
        public List<JSInstance> Instances;
    }
    public class JSInstance
    {
        public int Id;
        public InstanceStatus Status;
        public List<JSInstanceSiteState> SiteStatuses;
        public bool IsBusy;
    }
    public class JSSite
    {
        public int Id;
        public string Name;
        public string Source;
        public string Url;
    }
    public class JSInstanceSiteState
    {
        public int SiteId;
        public int InstanceId;
        public SiteStatus Status;
        public string DeploymentId;
    }

    public class JSSiteBindingList
    {
        public string Error = null;
        public JSSiteBinding[] Bindings;
    }
    public class JSSiteBinding
    {
        public int Port;
        public string Host;
        public string Cert;
    }
}